<script lang="ts" setup>
  import { Col, Row } from '@sscd/grid';
</script>

<template>
  <div class="demo">
    <div class="demo-title">响应式布局</div>
    <div class="demo-content">
      <Row class="row">
        <Col class="col odd" :xs="2" :sm="4" :md="6" :lg="8" :xl="10">Col</Col>
        <Col class="col even" :xs="20" :sm="16" :md="12" :lg="8" :xl="4">Col</Col>
        <Col class="col odd" :xs="2" :sm="4" :md="6" :lg="8" :xl="10">Col</Col>
      </Row>
    </div>
  </div>
</template>

<style lang="less" scoped>
  .demo {
    :deep(.row) {
      margin-bottom: 12px;
      .col {
        padding: 16px 0;
        text-align: center;
        color: #fff;
        &.odd {
          background: rgba(0, 146, 255, 0.75);
        }
        &.even {
          background: #0092ff;
        }
      }
    }
  }
</style>
